//
//  UIButton+extension.swift
//  one
//
//  Created by huangfeng on 2018/5/3.
//  Copyright © 2018年 huangfeng. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(title: String ,color: UIColor = UIColor.darkGray) {
        self.init()
        
        self.setTitle(title, for: .normal)
        self.setTitleColor(color, for: .normal)
        self.sizeToFit()
    }
}
